package com.cc.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

	private static final Logger logger = LoggerFactory.getLogger(IndexController.class);


	@ResponseBody
	@RequestMapping("/index")
	public String index(String name, Integer age) {
		logger.info("log index!!! .... ");
		return "index";
	}
	
	@ResponseBody
	@RequestMapping("/getUserName")
	public String getUserName(String name) {
		return "success";
	}
}
